package com.ai.exam.model;

import java.util.Date;
import javax.persistence.*;

@Table(name = "user_help")
public class UserHelp {
    /**
     * 被助力人OPENID
     */
    @Id
    @Column(name = "open_id")
    private String openId;

    /**
     * 被助力人电话
     */
    private String telnum;

    /**
     * 助力人openid
     */
    @Column(name = "open_id_help")
    private String openIdHelp;

    /**
     * 助力人电话
     */
    @Column(name = "telnum_help")
    private String telnumHelp;

    /**
     * 助力时间
     */
    @Column(name = "help_time")
    private Date helpTime;

    /**
     * 是否领奖
     */

    @Column(name = "is_prize")
    private Boolean isPrize;

    /**
     * 创建时间
     */

    @Column(name = "create_time")
    private Date createTime;

    /**
     * 获取被助力人OPENID
     *
     * @return open_id - 被助力人OPENID
     */
    public String getOpenId() {
        return openId;
    }

    /**
     * 设置被助力人OPENID
     *
     * @param openId 被助力人OPENID
     */
    public void setOpenId(String openId) {
        this.openId = openId;
    }

    /**
     * 获取被助力人电话
     *
     * @return telnum - 被助力人电话
     */
    public String getTelnum() {
        return telnum;
    }

    /**
     * 设置被助力人电话
     *
     * @param telnum 被助力人电话
     */
    public void setTelnum(String telnum) {
        this.telnum = telnum;
    }

    /**
     * 获取助力人openid
     *
     * @return open_id_help - 助力人openid
     */
    public String getOpenIdHelp() {
        return openIdHelp;
    }

    /**
     * 设置助力人openid
     *
     * @param openIdHelp 助力人openid
     */
    public void setOpenIdHelp(String openIdHelp) {
        this.openIdHelp = openIdHelp;
    }

    /**
     * 获取助力人电话
     *
     * @return telnum_help - 助力人电话
     */
    public String getTelnumHelp() {
        return telnumHelp;
    }

    /**
     * 设置助力人电话
     *
     * @param telnumHelp 助力人电话
     */

    public void setTelnumHelp(String telnumHelp) {
        this.telnumHelp = telnumHelp;
    }

    /**
     * 获取助力时间
     *
     * @return help_time - 助力时间
     */
    public Date getHelpTime() {
        return helpTime;
    }

    /**
     * 设置助力时间
     *
     * @param helpTime 助力时间
     */
    public void setHelpTime(Date helpTime) {
        this.helpTime = helpTime;
    }

    public Boolean getPrize() {
        return isPrize;
    }

    public void setPrize(Boolean prize) {
        isPrize = prize;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "UserHelp{" +
                "openId='" + openId + '\'' +
                ", telnum='" + telnum + '\'' +
                ", openIdHelp='" + openIdHelp + '\'' +
                ", telnumHelp='" + telnumHelp + '\'' +
                ", helpTime=" + helpTime +
                ", isPrize=" + isPrize +
                ", createTime=" + createTime +
                '}';
    }
}